
function injectClick() {
    let contextmenudiv = document.getElementById("contextmenudiv");
    if (!contextmenudiv) {
        return;
    }

    let printmenu = contextmenudiv.firstElementChild.children[1].firstChild;
    //printmenu.setAttribute("onclick","PrintObj.print()");
    printmenu.setAttribute("onclick", "if($('body').hasClass('fullopen')) {$('#artfullscreen_closer').trigger('click')};setTimeout(()=>PrintObj.print(),1000)");
}


injectClick();
    
